'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    let res = [{
      id: 1,
    }]
    ctx.apiSuccess(res, "消息提示")
    ctx.throw(500, '123456')
  }
}
module.exports = HomeController;
